#include "namedPipe.hpp"

int main()
{
    NamedPipe pipe("./myfifo", User);
    if(pipe.WriteOpen())
    {
        while(true)
        {
            std::cout<< "Enter Message>";
            std::string message;
            std::getline(std::cin, message);
            pipe.WriteForPipe(message);
        }
    }
    
    return 0;
} 
